package com.shycloud.mido.member.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.time.LocalDateTime;
import java.util.Date;
import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import lombok.Data;

@Data
@ApiModel(value = "com-shycloud-mido-member-api-entity-AtvMainOffline")
@TableName(value = "atv_main_offline")
public class AtvMainOffline {

	/** 活动ID */
	@TableId(value = "id", type = IdType.UUID)
	@ApiModelProperty(value = "活动ID", required = false)
	private String id;
	/** 活动名称 */
	@TableField(value = "atv_name")
	@NotBlank(message = "活动名称不能为空")
	@ApiModelProperty(value = "活动名称", required = true)
	private String atvName;
	/** 活动名称 */
	@TableField(value = "atv_subject")
	@NotBlank(message = "活动主题不能为空")
	@ApiModelProperty(value = "活动主题", required = true)
	private String atvSubject;
	/** 活动主题图片 */
	@TableField(value = "atv_pic_urls")
	@NotBlank(message = "活动主题图片至少上传一张")
	@ApiModelProperty(value = "活动主题图片,逗号分割", required = true)
	private String atvPicUrls;
	/** 活动规则 */
	@TableField(value = "atv_rule")
	@NotBlank(message = "活动规则不能为空")
	@ApiModelProperty(value = "活动规则", required = true)
	private String atvRule;
	/** 活动时间 */
	@TableField(value = "atv_time")
	@NotBlank(message = "活动时间不能为空")
	@ApiModelProperty(value = "活动时间", required = true)
	private String atvTime;
	/** 省 */
	@TableField(value = "atv_province")
	@NotBlank(message = "活动地点不能为空")
	@ApiModelProperty(value = "省", required = true)
	private String atvProvince;
	/** 市 */
	@TableField(value = "atv_city")
	@NotBlank(message = "活动地点不能为空")
	@ApiModelProperty(value = "市", required = true)
	private String atvCity;
	/** 区 */
	@TableField(value = "atv_area")
	@NotBlank(message = "活动地点不能为空")
	@ApiModelProperty(value = "区", required = true)
	private String atvArea;
	/** 详细地址 */
	@TableField(value = "atv_address")
	@ApiModelProperty(value = "详细地址")
	private String atvAddress;
	/** 联系电话 */
	@TableField(value = "atv_phone")
	@NotBlank(message = "联系电话不能为空")
	@ApiModelProperty(value = "联系电话", required = true)
	private String atvPhone;
	/** 机构ID */
	@TableField(value = "org_id")
	@ApiModelProperty(value = "机构ID")
	private Integer orgId;
	/** 机构名称 */
	@TableField(value = "org_name")
	@NotBlank(message = "主办方不能为空")
	@ApiModelProperty(value = "机构名称/主办方", required = true)
	private String orgName;
	/** 机构简介 */
	@TableField(value = "org_introduce")
	@NotBlank(message = "机构简介不能为空")
	@ApiModelProperty(value = "机构简介", required = true)
	private String orgIntroduce;
	/** 图片链接（逗号分隔）- 最多上传4张 */
	@TableField(value = "org_pic_urls")
	@NotBlank(message = "机构图片链接至少上传一张")
	@ApiModelProperty(value = "图片链接（逗号分隔）- 最多上传4张", required = true)
	private String orgPicUrls;
	/** 状态 -1草稿箱 0-审核中 1-通过 -2 未通过 */
	@TableField(value = "status")
	@ApiModelProperty(value = "状态 -2 未通过 -1草稿箱 0-审核中 1-通过")
	private String status;
	/** 创建时间 */
	@TableField(value = "create_time")
	@ApiModelProperty(value = "创建时间")
	private LocalDateTime createTime;
	/** 发起者的 memberId */
	@TableField(value = "from_member_id")
	@NotBlank(message = "发起者的 memberId 不能为空")
	@ApiModelProperty(value = "发起者的 memberId", required = true)
	private String fromMemberId;

	public static final String COL_ID = "id";

	public static final String COL_ATV_NAME = "atv_name";

	public static final String COL_ATV_PIC_URLS = "atv_pic_urls";

	public static final String COL_ATV_RULE = "atv_rule";

	public static final String COL_ATV_TIME = "atv_time";

	public static final String COL_ATV_PROVINCE = "atv_province";

	public static final String COL_ATV_CITY = "atv_city";

	public static final String COL_ATV_AREA = "atv_area";

	public static final String COL_ATV_ADDRESS = "atv_address";

	public static final String COL_ATV_PHONE = "atv_phone";

	public static final String COL_ORG_ID = "org_id";

	public static final String COL_ORG_NAME = "org_name";

	public static final String COL_ORG_INTRODUCE = "org_introduce";

	public static final String COL_ORG_PIC_URLS = "org_pic_urls";

	public static final String COL_STATUS = "status";

	public static final String COL_CREATE_TIME = "create_time";
}